package com.rc.evcharger.mapper.market;

import com.rc.evcharger.common.base.BaseMapper;

import com.rc.evcharger.model.market.MarketActivity;
import com.rc.evcharger.model.market.MarketActivityRecord;
import com.rc.evcharger.model.market.MarketActivityRecordExample;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface MarketActivityRecordMapper extends BaseMapper<Long, MarketActivityRecord, MarketActivityRecordExample> {

    /**
     * 找一条满足条件最大的优惠
     *
     * @param payAmount
     * @return
     */
    List<MarketActivityRecord> listMarketActivity(@Param("payAmount") BigDecimal payAmount, @Param("list") List<Long> list);

    List<MarketActivityRecord> listMarketActivityAndTicketType(@Param("payAmount") BigDecimal payAmount, @Param("list") List<Long> list);
}